package com.gin.pixiv.response.comment


import com.fasterxml.jackson.annotation.JsonAlias
import com.fasterxml.jackson.annotation.JsonFormat
import com.gin.pixiv.enums.PixivStamp
import java.time.LocalDateTime

/**
 * 评论区发言
 * @author : ginstone
 * @version : v1.0.0
 * @since : 2022/10/15 16:29
 */
class CommentReply {
    /**
     * 评论正文
     */
    @set: JsonAlias("comment")
    var content: String? = null

    /**
     * 评论发出时间
     */
    @set: JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm")
    var commentDate: LocalDateTime? = null

    /**
     * 父评论ID
     */
    var commentParentId: Long? = null
    var commentUserId: Long? = null
    var editable: Boolean? = null

    /**
     * 是否有楼中楼评论
     */
    var hasReplies: Boolean? = null
    var id: Long? = null

    /**
     * 用户头像
     */
    @set: JsonAlias("img")
    var userAvatar: String? = null
    var isDeletedUser: Boolean? = null

    /**
     * 纯表回复
     */
    @set:JsonAlias("stampId")
    var stamp: PixivStamp? = null
    var userId: Long? = null
    var userName: String? = null

    /*以下为楼中楼字段*/
    var replyToUserId: Long? = null
}
